package cn.qingyun.gis.modules.scenes.feign.fallback;

import cn.qingyun.gis.exception.CommonException;
import cn.qingyun.gis.modules.middle.api.standard.response.RgeoAddressVo;
import cn.qingyun.gis.modules.scenes.feign.PoiDetailClientService;
import org.springframework.stereotype.Component;

import javax.validation.constraints.NotEmpty;

@Component
public class PoiDetailServiceFallback implements PoiDetailClientService {

    @Override
    public RgeoAddressVo queryRgeoAddrByGdId(@NotEmpty(message = "高德ID不能为空") String gdId) {
        throw new CommonException("远程调用工单详情接口失败");
    }

    @Override
    public Boolean updateTelephone(@NotEmpty(message = "高德ID不能为空") String gdId, @NotEmpty(message = "商家电话不能为空") String telephone) {
        throw new CommonException("远程调用修改商家电话接口失败");
    }
}
